from django.core.mail import send_mail
from celery_tasks.main import celery_app
from utils.smsutils import SmsUtil


# name：异步任务别名
@celery_app.task(name='send_sms_code')
def send_sms_code(mobile, sms_code):
    SmsUtil().send_message(mobile=mobile, code=sms_code)
